<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
  <meta charset="UTF-8">
  <title th:replace="${title}">Title</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
  <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
  <link rel="stylesheet" href="../static/css/typo.css" th:href="@{/css/typo.css}">
  <link rel="stylesheet" href="../static/css/animate.css" th:href="@{/css/animate.css}">
  <link rel="stylesheet" href="../static/lib/tocbot/tocbot.css" th:href="@{/lib/tocbot/tocbot.css}">
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
  <script src="../static/lib/tocbot/tocbot.min.js" th:src="@{/lib/tocbot/tocbot.min.js}"></script>
  <script src="../static/js/qrcode.min.js" th:src="@{/js/qrcode.min.js}"></script>
  <script src="../static/js/jquery.scrollTo.min.js" th:src="@{/js/jquery.scrollTo.min.js}"></script>
  <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.css" th:href="@{/lib/editormd/css/editormd.css}">
  <script th:src="@{/lib/editormd/editormd.js}" src="../../static/lib/editormd/editormd.js"></script>
</head>
<body>

<!--后台导航栏-->
<nav th:fragment="adminmenu(n)" class="ui inverted attached segment m-padded-td-mini">
  <div class="ui container">
    <div class="ui inverted secondary stackable menu">
      <h2 class="ui teal header item">管理后台</h2>
      <a href="#" th:href="@{/admin/blogs}" class="m-item item m-mobile-hide " th:classappend="${n}==1?'active':''"><i class="home icon"></i>博客</a>
      <a href="#" th:href="@{/admin/types}" class="m-item item m-mobile-hide " th:classappend="${n}==2?'active':''"><i class="idea icon "></i>分类</a>
      <a href="#" th:href="@{/admin/tags}" class="m-item item m-mobile-hide " th:classappend="${n}==3?'active':''"><i class="tags icon "></i>标签</a>
      <div class="right menu">
        <div class="ui dropdown item">
          <div class="text">
            <img src="http://ydw.dwcode.top/images/wechat.jpg" alt="" class="avatar image">
            杨栋文
          </div>
          <i class="dropdown icon"></i>
          <div class="menu">
            <a href="#" th:href="@{/admin/logout}" class="item">注销</a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <a href="#" class="ui menu toggle black  icon button m-right-top m-mobile-show">
    <i class="sidebar icon"></i>
  </a>
</nav>

<!--导航栏-->
<nav class="ui inverted attached segment m-padded-td-mini" th:fragment="menu(n)">
  <div class="ui container">
    <div class="ui inverted secondary stackable menu">
      <h2 class="ui teal header item">Blog</h2>
      <a href="#" class="m-item item m-mobile-hide " th:classappend="${n}==1?'active':''"><i class="home icon"></i>首页</a>
      <a href="#" class="m-item item m-mobile-hide " th:classappend="${n}==2?'active':''"><i class="idea icon "></i>分类</a>
      <a href="#" class="m-item item m-mobile-hide " th:classappend="${n}==3?'active':''"><i class="tags icon "></i>标签</a>
      <a href="#" class="m-item item m-mobile-hide " th:classappend="${n}==4?'active':''"><i class="clone icon "></i>归档</a>
      <a href="#" class="m-item item m-mobile-hide " th:classappend="${n}==5?'active':''"><i class="info icon "></i>关于我</a>
      <div class="right item m-mobile-hide">
        <div class="ui icon  input">
          <input type="text" placeholder="Search...">
          <a href="" class="item"><i class="search | icon"></i></a>
        </div>
      </div>
    </div>
  </div>
  <a href="#" class="ui menu toggle black  icon button m-right-top m-mobile-show">
    <i class="sidebar icon"></i>
  </a>
</nav>

<!--底部-->
<footer class="ui inverted vertical segment m-padded-tb-massive" th:fragment="footer">
  <div class="ui center aligned container">
    <div class="ui inverted divided grid stackable">
      <div class="three wide column">
        <div class="ui inverted link list ">
          <div class="item">
            <img src="http://ydw.dwcode.top/images/wechat.jpg" alt="" class="ui rounded image">
          </div>
        </div>
      </div>
      <div class="three wide column">
        <h4 class="ui inverted header">最新博客</h4>
        <div class="ui inverted link list ">
          <a href="#" class="item">用户故事（）</a>
          <a href="#" class="item">用户故事（）</a>
          <a href="#" class="item">用户故事（）</a>
        </div>
      </div>
      <div class="three wide column">
        <h4 class="ui inverted header">联系我</h4>
        <div class="ui inverted link list ">
          <a href="#" class="item">用户故事（）</a>
          <a href="#" class="item">用户故事（）</a>
          <a href="#" class="item">用户故事（）</a>
        </div>
      </div>
      <div class="seven wide column">
        <h4 class="ui inverted header">最新博客</h4>
        <p>最新博客最新博客最新博客最新博客最新博客最新博客最新博客最新博客最新博客最新博客最新博客</p>
      </div>
    </div>
    <div class="ui inverted section divider"></div>
    <p>版权归ydw所有</p>
  </div>
</footer>

</body>
</html>